package com.dormitory.dao;

import com.dormitory.po.DormRepair;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DormRepairDao {

    /**
     * 进行分页查询
     */

    //获取总条数
    public Integer totalCount(@Param("s_dormitoryid") Integer s_dormitoryid, @Param("d_dormbuilding") String d_dormbuilding);

    //获取用户列表
    public List<DormRepair> getDormRepairList(@Param("s_dormitoryid") Integer s_dormitoryid, @Param("d_dormbuilding") String d_dormbuilding, @Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize);

    public int addDormRepair(DormRepair dormrepair);    //添加宿舍信息

    public int deleteDormRepair(Integer r_id);   //删除宿舍信息

    public int updateDormRepair(DormRepair dormrepair); //修改宿舍信息

    public DormRepair findDormRepairById(Integer r_id);

    public List<DormRepair> getAll();

}
